﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QuestionInputModels>" %>

<%@ Import Namespace="SDT.Lib.Paging" %>
<%@ Import Namespace="SDT.Site.ViewModels" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Diễn đàn, hỏi đáp về bất động sản, nhà đất, luật nhà đất
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="tinrao_col_l">
        <div class="bor_cor">
            <% Html.RenderAction("Lasted", "QuestionCategory", new
               {
                   title = "Chuyên mục hỏi đáp"
               }); %>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="tinrao_col_cen">
        <div id="ask-advice">
            <form id="questionForm" name="questionForm" action="/Question/CreateQuestion" method="post">
            <h3 class="hq1">
                GỬI BÀI ViẾT ĐỂ MỌI NGƯỜI CÙNG CHIA SẺ VỚI BẠN.</h3>
            <div class="hq2">
            </div>
            <h4>
                Tiêu đề&nbsp;(<span style="color: Red;">*</span>)</h4>
            <%= Html.TextBoxFor(m => m.Question.Title, new { @style = "width: 98%; font-size: 1.3em;" })%>
            <div style="display: none;" id="similar">
            </div>
            <fieldset id="basic-infor">
                <div style="width: 50%; float: left;">
                    <h4>
                        Tên liên hệ&nbsp;(<span style="color: Red;">*</span>)</h4>
                    <%= Html.TextBoxFor(m => m.Question.SendBy, new { @class = "required"})%>
                </div>
                <div style="width: 50%; float: right;">
                    <h4>
                        Email&nbsp;(<span style="color: Red;">*</span>)</h4>
                    <%= Html.TextBoxFor(m => m.Question.SendEmail, new { @class = "required"}) %>
                </div>
            </fieldset>
            <fieldset class="ask" id="ask-detail">
                <h4>
                    Chi tiết câu hỏi(<span style="color: Red;">*</span>) <span style="font-weight: normal;">
                        (Yêu cầu gõ tiếng Việt có dấu):</span>
                </h4>
                <%= Html.TextAreaFor(m=>m.Question.QuestionContent, new { @class = "required", @rows = "6", @cols="8"}) %>
            </fieldset>
            <fieldset class="ask selections" id="ask-selects">
                <h4>
                    Phân loại chuyên mục&nbsp;(<span style="color: Red;">*</span>)</h4>
                <%= Html.DropDownListFor(m => m.Question.CatID, new SelectList(Model.ArticleCategory, "ID", "Name"), "---Chọn chuyên mục---")%>
            </fieldset>
            <fieldset class="ask-button">
                <input type="submit" value="Gửi" name="questionSubmit" id="questionSubmit" class="btn_question" />
                <input type="button" value="Hủy" name="questionCancel" id="questionCancel" class="btn_question" />
            </fieldset>
            <%= Html.HiddenFor(m=>m.Question.nViews) %>
            <%= Html.HiddenFor(m=>m.Question.nAnswers) %>
            <%= Html.HiddenFor(m=>m.Question.nPubAnswers) %>
            </form>

            <script language="javascript" type="text/javascript">
                tinyMCE.init({
                    mode: "exact",
                    plugins: "emotions",
                    theme: "advanced",
                    elements: "Question_QuestionContent",
                    theme_advanced_buttons1: "mybutton,bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,emotions,undo,redo,link,unlink,image",
                    theme_advanced_buttons2: "",
                    theme_advanced_buttons3: "",
                    theme_advanced_toolbar_location: "top",
                    theme_advanced_toolbar_align: "left",
                    theme_advanced_statusbar_location: "bottom",
                    valid_elements: "@[id|class|style|title|dir<ltr?rtl|lang|xml::lang|onclick|ondblclick|"
                                     + "onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|"
                                     + "onkeydown|onkeyup],a[rel|rev|charset|hreflang|tabindex|accesskey|type|"
                                     + "name|href|target|title|class|onfocus|onblur],strong/b,em/i,strike,u,"
                                     + "#p,-ol[type|compact],-ul[type|compact],-li,br,img[longdesc|usemap|"
                                     + "src|border|alt=|title|hspace|vspace|width|height|align],-sub,-sup,"
                                     + "-blockquote,-table[border=0|cellspacing|cellpadding|width|frame|rules|"
                                     + "height|align|summary|bgcolor|background|bordercolor],-tr[rowspan|width|"
                                     + "height|align|valign|bgcolor|background|bordercolor],tbody,thead,tfoot,"
                                     + "#td[colspan|rowspan|width|height|align|valign|bgcolor|background|bordercolor"
                                     + "|scope],#th[colspan|rowspan|width|height|align|valign|scope],caption,-div,"
                                     + "-span,-code,-pre,address,-h1,-h2,-h3,-h4,-h5,-h6,hr[size|noshade],-font[face"
                                     + "|size|color],dd,dl,dt,cite,abbr,acronym,del[datetime|cite],ins[datetime|cite],"
                                     + "object[classid|width|height|codebase|*],param[name|value|_value],embed[type|width"
                                     + "|height|src|*],map[name],area[shape|coords|href|alt|target],bdo,"
                                     + "button,col[align|char|charoff|span|valign|width],colgroup[align|char|charoff|span|"
                                     + "valign|width],dfn,fieldset,form[action|accept|accept-charset|enctype|method],"
                                     + "input[accept|alt|checked|disabled|maxlength|name|readonly|size|src|type|value],"
                                     + "kbd,label[for],legend,noscript,optgroup[label|disabled],option[disabled|label|selected|value],"
                                     + "q[cite],samp,select[disabled|multiple|name|size],small,"
                                     + "textarea[cols|rows|disabled|name|readonly],tt,var,big"
                }); 
            </script>
        </div>
    </div>
    <div class="tinrao_col_l">
        <div class="bor_cor" style="margin-bottom: 5px;">
            <div class="bar_org_small module-title" align="center">
                <span class="module-title module-title">HỎI - ĐÁP</span>
            </div>
            <form action="/Question/Create" method="post">
            <div class="module_content">
                <div class="new_list" style="text-align: center; cursor: pointer;">
                    <textarea name="questionContent" id="questionContent" cols="20" rows="4"></textarea>
                    <div class="clear">
                    </div>
                </div>
                <div style="margin-bottom: 6px; margin-top: 10px; text-align: center;">
                    <input type="submit" value="Gửi câu hỏi" />
                </div>
            </div>
            </form>
            <div class="clear">
            </div>
        </div>
        <div class="bor_cor" style="margin-bottom: 5px;">
            <% Html.RenderAction("Lasted", "Question", new
               {
                   title = "Hỏi đáp được quan tâm"
               }); %>
        </div>
        <div class="bor_cor" style="margin-bottom: 5px;">
            <% Html.RenderAction("Newsest", "Question", new
               {
                   title = "Hỏi đáp mới nhất"
               }); %>
        </div>
        <div class="bor_cor" style="margin-bottom: 5px;">
            <div class="bar_org_small module-title" align="center">
                <span class="module-title module-title">Chủ đề được quan tâm</span>
            </div>
            <div class="module_content">
                <div class="module_content_chudautu">
                    <ul class="company_chudautu">
                        <li class="company_chudautu">
                            <div class="new_point_img">
                                <a href="#">
                                    <img width="62" height="55" class="bor_img" alt="" src="/Images/image-temp/24-1.jpg">
                                </a>
                            </div>
                            <div class="new_point_txt">
                                <a class="link_gray" href="#">Công ty TSQ Việt Nam</a>
                            </div>
                            <div class="clear">
                            </div>
                        </li>
                        <li class="company_chudautu bg_gray">
                            <div class="new_point_img">
                                <a href="#">
                                    <img width="62" height="55" class="bor_img" alt="" src="/Images/image-temp/87-1.gif">
                                </a>
                            </div>
                            <div class="new_point_txt">
                                <a class="link_gray" href="#">Tổng Công ty Cổ phần Đầu</a>
                            </div>
                            <div class="clear">
                            </div>
                        </li>
                        <li class="company_chudautu">
                            <div class="new_point_img">
                                <a href="#">
                                    <img width="62" height="55" class="bor_img" alt="" src="/Images/image-temp/305-ort.jpg">
                                </a>
                            </div>
                            <div class="new_point_txt">
                                <a class="link_gray" href="#">Keangnam enterprises ltd</a>
                            </div>
                            <div class="clear">
                            </div>
                        </li>
                        <li class="company_chudautu bg_gray">
                            <div class="new_point_img">
                                <a href="#">
                                    <img width="62" height="55" class="bor_img" alt="" src="/Images/image-temp/127-136978-du-an-royal-city-royal-city.jpg">
                                </a>
                            </div>
                            <div class="new_point_txt">
                                <a class="link_gray" href="#">Công ty cổ phần Bất Động Sản AZ</a>
                            </div>
                            <div class="clear">
                            </div>
                        </li>
                        <li class="company_chudautu">
                            <div class="new_point_img">
                                <a href="#">
                                    <img width="62" height="55" class="bor_img" alt="" src="/Images/image-temp/21-THAphoicanh.jpg">
                                </a>
                            </div>
                            <div class="new_point_txt">
                                <a class="link_gray" href="#">Công ty Cổ Phần Tập đoàn Nam Cường, </a>
                            </div>
                            <div class="clear">
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="bor_cor" style="margin-bottom: 5px;">
            <div class="bar_org_small module-title" align="center">
                <span class="module-title module-title">Doanh nghiệp tiêu biẻu</span>
            </div>
            <div class="module_content">
                <div class="module_content_chudautu">
                    <ul class="company_chudautu">
                        <li class="company_chudautu">
                            <div class="new_point_img">
                                <a href="#">
                                    <img width="62" height="55" class="bor_img" alt="" src="/Images/image-temp/24-1.jpg">
                                </a>
                            </div>
                            <div class="new_point_txt">
                                <a class="link_gray" href="#">Công ty TSQ Việt Nam</a>
                            </div>
                            <div class="clear">
                            </div>
                        </li>
                        <li class="company_chudautu bg_gray">
                            <div class="new_point_img">
                                <a href="#">
                                    <img width="62" height="55" class="bor_img" alt="" src="/Images/image-temp/87-1.gif">
                                </a>
                            </div>
                            <div class="new_point_txt">
                                <a class="link_gray" href="#">Tổng Công ty Cổ phần Đầu</a>
                            </div>
                            <div class="clear">
                            </div>
                        </li>
                        <li class="company_chudautu">
                            <div class="new_point_img">
                                <a href="#">
                                    <img width="62" height="55" class="bor_img" alt="" src="/Images/image-temp/305-ort.jpg">
                                </a>
                            </div>
                            <div class="new_point_txt">
                                <a class="link_gray" href="#">Keangnam enterprises ltd</a>
                            </div>
                            <div class="clear">
                            </div>
                        </li>
                        <li class="company_chudautu bg_gray">
                            <div class="new_point_img">
                                <a href="#">
                                    <img width="62" height="55" class="bor_img" alt="" src="/Images/image-temp/127-136978-du-an-royal-city-royal-city.jpg">
                                </a>
                            </div>
                            <div class="new_point_txt">
                                <a class="link_gray" href="#">Công ty cổ phần Bất Động Sản AZ</a>
                            </div>
                            <div class="clear">
                            </div>
                        </li>
                        <li class="company_chudautu">
                            <div class="new_point_img">
                                <a href="#">
                                    <img width="62" height="55" class="bor_img" alt="" src="/Images/image-temp/21-THAphoicanh.jpg">
                                </a>
                            </div>
                            <div class="new_point_txt">
                                <a class="link_gray" href="#">Công ty Cổ Phần Tập đoàn Nam Cường, </a>
                            </div>
                            <div class="clear">
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
    </div>
    <div class="clear">
    </div>
</asp:Content>
